package com.gph.saviorframework.dao.config;

import com.gph.saviorframework.base.dao.BaseDao;
import com.gph.saviorframework.common.model.Item;
import org.apache.ibatis.annotations.Param;
import org.aspectj.lang.annotation.Aspect;

import java.util.List;
import java.util.Map;

@Aspect
public interface ItemDao extends BaseDao<Item,String> {

    long count(@Param(value = "where_clause") String whereClause);

    List<Map<String,Object>> find(@Param(value = "sort") String sort, @Param(value = "dir") String dir,
                                  @Param(value = "where_clause") String whereClause);
}
